/*
 * RotationTable.c
 *
 * Created: 03.02.2014 21:49:39
 *  Author: Monoblock
 */ 


#include <avr/io.h>
#include <avr/interrupt.h>
#include "lcd_lib.h"


uint8_t text2[7] = {'H','I',' ','b','a','b','y'};
uint8_t text3[7] = {"hi baby"};
unsigned char buf = 0;

ISR(TIMER2_COMP_vect)
{
	
}

int main(void)
{
	unsigned char position = 0;
	unsigned char tempPos = 0;
	unsigned char pos = 0;
	InitDisplay();
	InitPad();
	InitTimers();
			LCDGotoXY(0,0);
	LCDsendString("IAR Key: ");
    while(1)
    {	
		KEYB_ScanKeyboard();
		buf = KEYB_GetKey();
		tempPos = pos;
		if (buf)
		{
			LCDGotoXY(9 + position,0);
			LCDsendChar(buf);
			position++;
		}
    }
}

void InitTimers()
{
	
}

void InitDisplay()
{
	LCDinit();
	LCDcursorOn();
}

void InitPad()
{
	KEYB_Init() ;
}